<?php

namespace App\Models\User\Prize;

use Illuminate\Database\Eloquent\Model;

class Logs extends Model
{
    protected  $table="user_prize_logs";

    protected $fillable = [
        'x_uid', 'prize_id', 'rank_id','status','order'
    ];

    protected $hidden = [
         'remember_token',
    ];

    public function prize(){
        return $this->hasOne('App\Models\Prize','id','prize_id');
    }
    public function Users(){
        return $this->hasOne('App\Models\WxUser','id','x_uid');
    }
}
